package com.asman.vr.dto

import androidx.annotation.MainThread
import com.asman.vr.network.Api
import com.asman.vr.network.OSSType
import com.asman.vr.network.liveData
import java.util.concurrent.Executor

class BaseDataRepository(private val api: Api, private val networkExecutor: Executor) {

    @MainThread
    fun getProvinceCityDistrict() = liveData(api.getProvinceCityDistrict())

    @MainThread
    fun getOSSConfigData(ossType: OSSType) = liveData(api.getOSSConfigData(ossType.type))

    @MainThread
    fun getStyleList() = liveData(api.getStyleList())

    @MainThread
    fun getIMLoginParams() = liveData(api.getIMLoginParams())
}